/*
 * Exception.c
 *
 *  Created on: 2011-7-17
 *      Author: gexiao
 */
#include "Dalvik.h"

#include <stdlib.h>

/*
 * ...
 */
void dvmThrowChainedException(const char* exceptionDescriptor, const char* msg,
		Object* cause) {
}

/*
 *
 */
void dvmThrowChainedExceptionWithClassMessage(const char* exceptionDescriptor,
		const char* messageDescriptor, Object* cause) {

}

/*
 *
 */
void dvmThrowExceptionByClassWithClassMessage(ClassObject* exceptionClass,
		const char* messageDescriptor) {

}

/*
 *
 */
int dvmFindCatchBlock(Thread* self, int relPc, Object* exception,
		bool scanOnly, void** newFrame) {

}

/*
 * Wrap the now-pending exception in a different exception.  This is useful
 * for reflection stuff that wants to hand a checked exception back from a
 * method that doesn't declare it.
 *
 * If something fails, an (unchecked) exception related to that failure
 * will be pending instead.
 */
void dvmWrapException(const char* newExcepStr) {

}


/*
 * Print the stack trace of the current thread's exception, as well as
 * the stack traces of any chained exceptions, to the log. We extract
 * the stored stack trace and process it internally instead of calling
 * interpreted code.
 */
void dvmLogExceptionStackTrace(void) {

}
